package com.kclm.se.jcf;

import java.util.Comparator;

public class MyComparator implements Comparator<Teacher> {

	@Override
	public int compare(Teacher o1, Teacher o2) {
		//
		System.out.println("---比较...");
		return o1.getName().compareTo(o2.getName());
	}

	
}
